package csw;

public class J05Ex36ComputeTime {

	public static void main(String[] args) {
		// 변수선언
		int day2sec = 86400;  //하루를 초로 환산
		int hour2sec = 3600; //1시간을 초로 환산
		int min2sec = 60; //1분을 초로 환산
		int data1 = 1234567890; 
		int data2 = 12345; 
		int data3 = 67890; 
		String result = "";
		//시간 계산
		
		result += "1234567890초는" +
				(data1/ day2sec) +"일," 
				+ (data1%day2sec)/hour2sec + "시"
				+ ((data1% day2sec)%hour2sec)/ min2sec + "분" + "\n"
				+ ((data1% day2sec)%hour2sec)/ min2sec + "초" + "\n";
		
		result += "16351시간은" + 
				(16351/hour2sec) + 
				"초입니다\n";
		result +="67890초는"+
				(67890/min2sec) +
				"분입니다\n";
		result +="1131분은"+
				(1131/min2sec) +
				"초입니다\n";
		// 결과출력
		System.out.println(result);
		
		

	}

}
